﻿@model KRM.Core.tblOrderItemPhoto
@{
    ViewBag.Title = "Edit OrderItem Photo";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div class="padding10">
    <fieldset>
        <legend>Edit photo</legend>
        <form action="/orderview/editorderitemphoto" method="POST" enctype="multipart/form-data" class="margin0 row-fluid">
            <input type="hidden" name="ID" value="@Model.ID"/>
            <input type="hidden" name="OrderRef" value="@ViewBag.OrderRef"/>
            <div class="span8">
                <div class="row-fluid">
                    <div class="span2">Choose image</div>
                    <div class="span6"><input type="file" name="PhotoSrc" required="required"/></div>
                </div>
                <div class="row-fluid" style="margin-top: 5px">
                    <div class="span2"></div>
                    <div class="span6">
                        <input type="submit" class="btn btn-primary span6" value="Update Photo"/>
                    </div>
                </div>
            </div>
            <div class="span3">
                <img src="/rdm/getfile?path=@Model.PhotoSrc" style="width: 120px;" alt="@Model.PhotoName" />
            </div>
        </form>
    </fieldset>
</div>
